package com.sora.exception;

import com.sora.enumeration.RpcError;

/**
 * @Classname: RpcException
 * @Description:
 * @Author: Stonffe
 * @Date: 2023/4/30 17:02
 */
public class RpcException extends RuntimeException{
    public RpcException(RpcError e) {
        super(e.getMessage());
    }
    public RpcException(RpcError error, String detail) {
        super(error.getMessage() + ": " + detail);
    }

    public RpcException(String message, Throwable cause) {
        super(message, cause);
    }
}
